package com.example.module_maintenance.repo

import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.example.module_maintenance.api.RepairApiService
import com.example.module_maintenance.entity.RepairEntity

class RepairRepo : BaseRepository<RepairApiService>(){
    override fun createApiServer(): RepairApiService  = OkHttpClientManager.retrofitInstance.create(RepairApiService::class.java)
    suspend fun getRepair() = apiService.getWeixiu()

    suspend fun addRepair(body:RepairEntity) = apiService.addRepair(body)
}